<?php

require ROOT_PATH.'/Helper/admin_abstract.php';

class Action extends admin_abstract
{
    function index()
    {
        if (Request::isPost()) {
            $info = _POST('info', array());
            foreach ($info as $key => $val) {
                _model('setting')->update(array('name' => $key), array('value'=>$val));
            }
            $this->redirect();
        } else {
            $this->view->display('admin/analytics.html');
        }
    }
}


?>